using System;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using PPIProxy.PPIWebservice;

namespace PPIProxy
{
	public static class WUtility_Polygon_Point
	{
		#region Query
        public static DataSet SelectAllByPolygon(Int32 Utility_PolygonId, string connectionKey)
        {
            PPIProxy.PPIWebservice.PPIWebServiceClass serv = new PPIService();
            return serv.Utility_Polygon_Point_SelectAllByPolygon(Utility_PolygonId, connectionKey);
        }
        #region summary
		/// <summary>
		/// Date: 05/12/2008
		/// Time: 13:58:38
		/// Generated by: VMCoder
		/// Generated using VirtualGenerator
		/// </summary>
		#endregion summary
        public static DataSet SelectAll(string connectionKey)
		{
            PPIProxy.PPIWebservice.PPIWebServiceClass serv = new PPIService();
            return serv.Utility_Polygon_Point_SelectAll(connectionKey);
		}
		#endregion Query

		#region CRUD
		#region summary
		/// <summary>
		/// Date: 05/12/2008
		/// Time: 13:58:38
		/// Generated by: VMCoder
		/// Generated using VirtualGenerator
		/// </summary>
		#endregion summary
        public static Int32 Insert(Int32 utility_PolygonFK, double latitude, double longitude, string connectionKey)
		{
            PPIProxy.PPIWebservice.PPIWebServiceClass serv = new PPIService();
            return serv.Utility_Polygon_Point_Insert(utility_PolygonFK, latitude, longitude, connectionKey);
		}
		#region summary
		/// <summary>
		/// Date: 05/12/2008
		/// Time: 13:58:38
		/// Generated by: VMCoder
		/// Generated using VirtualGenerator
		/// </summary>
		#endregion summary
        public static void Delete(Int32 utility_Polygon_PointId, string connectionKey)
		{
            PPIProxy.PPIWebservice.PPIWebServiceClass serv = new PPIService();
            serv.Utility_Polygon_Point_Delete(utility_Polygon_PointId,connectionKey);
		}
        #region summary
        /// <summary>
        /// Date: 05/12/2008
        /// Time: 13:58:38
        /// Generated by: VMCoder
        /// Generated using VirtualGenerator
        /// </summary>
        #endregion summary
        public static void DeleteByPolygon(Int32 utility_PolygonFk, string connectionKey)
        {
            PPIProxy.PPIWebservice.PPIWebServiceClass serv = new PPIService();
            serv.Utility_Polygon_Point_DeleteByPolygon(utility_PolygonFk,connectionKey);
        }
        #endregion CRUD
	}
}

